]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screencast: Properly stop all recordings on session mode changes
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Oct 2014 12:46:36 +0000 (14:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Oct 2014 14:19:41 +0000 (16:19 +0200)
We currently just clear out the map of recorders (which results
in the top bar indicator to be hidden), but don't stop the actual
recordings.
Spotted by Adel Gadllah on IRC.

js/ui/screencast.js

index e2fb8c8dec5171fe1642fbf854fb9f3a2380172e..d1ccc5be7faa78d10ee40af24bbf31cd8f13476b 100644 (file)
@@ -68,8 +68,8 @@ const ScreencastService = new Lang.Class({
         if (Main.sessionMode.allowScreencast)
             return;
 
-        this._recorders.clear();
-        this.emit('updated');
+        for (let sender of this._recorders.keys())
+            this._stopRecordingForSender(sender);
     },
 
     _onNameVanished: function(connection, name) {